import request from '@/utils/request'

// 查询收货人信息列表
export function listConsignee(query) {
  return request({
    url: '/employer/consignee/list',
    method: 'get',
    params: query
  })
}

// 查询所有收货人信息列表
export function listConsigneeAll() {
  return request({
    url: '/employer/consignee/listAll',
    method: 'get',
  })
}

// 查询收货人信息详细
export function getConsignee(id) {
  return request({
    url: '/employer/consignee/' + id,
    method: 'get'
  })
}

// 新增收货人信息
export function addConsignee(data) {
  return request({
    url: '/employer/consignee',
    method: 'post',
    data: data
  })
}

// 修改收货人信息
export function updateConsignee(data) {
  return request({
    url: '/employer/consignee',
    method: 'put',
    data: data
  })
}

// 删除收货人信息
export function delConsignee(id) {
  return request({
    url: '/employer/consignee/' + id,
    method: 'delete'
  })
}
